//
//  ANDatePickerController.m
//  WeiYiMei
//
//  Created by 李叶夫 on 2019/5/27.
//  Copyright © 2019年 liyefu. All rights reserved.
//

#import "ANDatePickerController.h"

@interface ANDatePickerController ()

@property (nonatomic, strong) UIDatePicker *picker;

@end

@implementation ANDatePickerController

- (void)dealloc
{
    NSLog(@"%@销毁了",NSStringFromClass([self class]));
}

- (CGFloat)controllerHeight
{
    return kScreenH;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    self.view.backgroundColor = [UIColor clearColor];
    [self setup];
}

- (void)setup
{
    CGFloat h = 220;
    UIView *bgView = [[UIView alloc] initWithFrame:CGRectMake(0, kScreenH-kiPhoneXInsetBottom-h, kScreenW, h+kiPhoneXInsetBottom)];
    bgView.backgroundColor = [UIColor whiteColor];
    self.picker = [[UIDatePicker alloc] initWithFrame:CGRectMake(0, 0, kScreenW, h)];
    
    [self.view addSubview:bgView];
    [bgView addSubview:self.picker];
    
    
    
    
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
